package de.fhdw.seminar.xtext.generator;

import de.fhdw.seminar.xtext.generator.UmlDslGeneratorTS;
import de.fhdw.seminar.xtext.generator.UmlDslGeneratorTT;
import org.eclipse.emf.ecore.resource.Resource;
import org.eclipse.xtext.generator.IFileSystemAccess;
import org.eclipse.xtext.generator.IGenerator;

@SuppressWarnings("all")
public class UmlDslGenerator implements IGenerator {
  protected final String FileEnding = ".sql";
  
  protected final String ClassTablePrefix = "C_";
  
  protected final String AssocTablePrefix = "A_";
  
  protected final String AttTablePrefix = "At_";
  
  protected final String IdDataType = "int";
  
  protected final String IdName = "ID";
  
  protected final String TypeColumnName = "Type";
  
  protected final String PrimaryKeyConstraint = "Primary Key";
  
  protected final String ForeignKeyPrefix = "FK_";
  
  protected final String ObjectTableName = "S_Object";
  
  protected final String Comma = ",  ";
  
  protected final String BooleanDataType = "tinyInt";
  
  protected final String StringDataType = "varchar2";
  
  protected final String IntegerDataType = "int";
  
  protected final String NewParagraph = "\n\n";
  
  protected final String NewLine = "\n";
  
  public void doGenerate(final Resource resource, final IFileSystemAccess fsa) {
    UmlDslGeneratorTS _umlDslGeneratorTS = new UmlDslGeneratorTS();
    _umlDslGeneratorTS.doGenerate(resource, fsa);
    UmlDslGeneratorTT _umlDslGeneratorTT = new UmlDslGeneratorTT();
    _umlDslGeneratorTT.doGenerate(resource, fsa);
    UmlDslGeneratorTS _umlDslGeneratorTS_1 = new UmlDslGeneratorTS();
    UmlDslGeneratorTS genTS = _umlDslGeneratorTS_1;
    genTS.doGenerate(resource, fsa);
    UmlDslGeneratorTS _umlDslGeneratorTS_2 = new UmlDslGeneratorTS();
    UmlDslGeneratorTS genTT = _umlDslGeneratorTS_2;
    genTT.doGenerate(resource, fsa);
  }
}
